<template>
  <div class="warpc">
    <div class="top">
      <span @click="fungo()"><van-icon name="arrow-left" /> </span
      ><span class="food">美食</span>
      <div class="center">
        <span class="icon"><van-icon name="search" /></span>
        <input type="text" name="" id="" placeholder="串串" />
      </div>
      <div class="dt">
        <img src="chenkong/imgs/title/dt.gif" alt="" /><span>地图</span>
      </div>
      <span class="icon"><van-icon name="ellipsis" /></span>
    </div>
    <div class="list">
      <ShopListZi class="listzi" />
    </div>
    <div class="line"></div>
  </div>
</template>

<script>
import ShopListZi from "./ShopListZi.vue";

export default {
  components: {
    ShopListZi,
  },
  methods: {
    fungo() {
      this.$router.go(-1);
    },
  },
};
</script>

<style lang="scss" scoped>
.warpc {
  width: 100%;

  .top {
    width: 95%;
    margin: auto;
    font-size: 3.733vw;
    display: flex;
    justify-content: space-between;
    line-height: 8.8vw;
    height: 8.8vw;

    .food {
      font-size: 4.8vw;
      font-weight: bold;
    }
    .icon {
      font-size: 5.333vw;
    }
    .center {
      text-align: center;
      width: 60%;

      border-radius: 999em;

      box-shadow: 0 0 1.333vw #999;
    }
    .dt {
      text-align: center;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;

      img {
        width: 4.267vw;
      }
      span {
        line-height: 4.267vw;
      }
    }
    input {
      width: 30%;
      outline: none;
      border: none;
      line-height: 3.733vw;
    }
  }

  .line {
    width: 100%;
    height: 1.333vw;
    background: #f4f4f4;
  }
}
</style>